public class Score {
    public static void main(String[] args) {
        int grade = 88;
        char level = ' ';
        if (grade < 60) {
            level = 'D';
        } else {
            if (grade < 70) {
                level = 'C';
            } else {
                if (grade < 80) {
                    level = 'B';
                } else {
                    level = 'A';
                }
            }
        }
        System.out.println(level);
    }
}
